package cn.edu.fzu.delivery.service;

import cn.edu.fzu.delivery.domain.entity.Courier;
import cn.edu.fzu.delivery.domain.entity.CourierDelivery;
import cn.edu.fzu.delivery.domain.entity.Logistics;
import cn.edu.fzu.delivery.domain.entity.SysUser;
import cn.edu.fzu.delivery.domain.enums.CourierStatusEnum;
import cn.edu.fzu.delivery.domain.enums.DeliveryStatusEnum;
import cn.edu.fzu.delivery.domain.enums.UrgencyEnum;

import java.util.Date;
import java.util.List;

/**
 * @author jiebin
 * @data 2022/11/9
 **/
public interface DeliveryManService {

    /**
     * 查询快递
     * 
     * @param deliveryManId
     * @param status
     * @param startTime
     * @param endTime
     * @return
     */
    List<CourierDelivery> listCouriers(Long deliveryManId, String courierId, DeliveryStatusEnum status,
                                       String startTime, String endTime);


    /**
     * 更新快递派送状态
     * 
     * @param deliveryManId
     * @param courierId
     * @param status
     */
    void updateDeliveryStatus(SysUser deliveryManId, String courierId, DeliveryStatusEnum status);


    /**
     * 完善快递重量信息
     * 
     * @param user
     * @param courierId
     * @param weight
     */
    void updateCourier(SysUser user, String courierId, Double weight);
}
